#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int cleaMask(int x, int n)
{

	return x & (~(1 << n));
}
int main()
{
	int x, n;
	scanf("%d%d", &x, &n);
	printf("%d", cleaMask(x, n));
	return 0;
}